#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

LDFLAGS += -lm
DEB_CONFIGURE_EXTRA_FLAGS += --enable-static
DEB_COMPRESS_EXCLUDE := .pdf

build/coinor-libdylp-doc:: debian/stamp-build-coinor-libdylp-doc
debian/stamp-build-coinor-libdylp-doc:
	doxygen doxydoc/doxygen.conf
	cd DyLP/doc && ./build_dylpdoc --ps --pdf dylp
	touch $@

get-orig-source:
	-uscan --rename --upstream-version 0
	@echo successfully retrieved upstream tarball

clean::
	$(RM) -r debian/stamp-* doxydoc/html
